<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page import="java.util.List" %>	
<%@ page import="org.limp.mine.StringTool" %>	
<%@ page import="jt.classic.system.user.IUser"%>
<%@ page import="jt.classic.system.context.ISystemContext"%>
<%@ page import="jt.classic.system.IApplication"%>
<%@ page import="jt.classic.system.wordbook.XWordbook" %>
<%@ page import="jt.classic.system.wordbook.XWordbookMain" %>
<%
   response.setHeader("Pragma","No-cache");//HTTP 1.1 
   response.setHeader("Cache-Control","no-cache");//HTTP 1.0 
   response.setDateHeader("Expires",0);//防止被proxy
   
   IUser user = ISystemContext.getSessionUser(request);
   
   String context = jt.classic.system.context.ISystemContext.getContextPath();
   
   XWordbookMain wbmain = XWordbookMain.getInstance();
   List applicaitonJS = wbmain.getWord("applicationJSCSS");
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<%
if(!"".equals(IApplication.D(IApplication.ICON))){
%>
<link type="image/x-icon" rel="shortcut icon"
	href="<%=context %><%=IApplication.D(IApplication.ICON) %>" />
<%
}
%>
<title>欢迎访问---<%=IApplication.D(IApplication.NAME)%></title>
<jsp:include page="../system/head.jsp"></jsp:include>
<jsp:include page="system_plugin.jsp"></jsp:include>
<link rel="stylesheet" type="text/css" href="layout-browser.css"></link>
<!-- page specific -->
<script type="text/javascript" src="layout-browser.js"></script>
<script type="text/javascript" src="js/Clock.js"></script>
<script type="text/javascript" src="js/msg.js"></script>
<%
    if(applicaitonJS != null && !applicaitonJS.isEmpty()){
    	for(int i=0 ; i < applicaitonJS.size(); i++){
    		XWordbook wb = (XWordbook)applicaitonJS.get(i);
    		String paramName = StringTool.checkString(wb.getID());
    		String paramValue = StringTool.checkString(wb.getName());
    		if(paramName.lastIndexOf(".js") > -1){
				out.println("<script type=\"text/javascript\" src=\"" + (context + paramValue) + "\"></script>");
    		}else if(paramName.lastIndexOf(".css") > -1){
				out.println("<link rel=\"stylesheet\" type=\"text/css\" href=\"" + (context + paramValue) + "\"></link>");
    		}
    	}	
    }
%>
</head>
<script>
  var desktop = '<%=("".equals(IApplication.D(IApplication.DESKTOP)) ? "/extframe/desktop.jsp" : IApplication.D(IApplication.DESKTOP)) %>';
</script>
<body>
<div id="header">
<img id="logo" src="<%=context %>/extframe/images/jet.png"/>
<h1><%=IApplication.D(IApplication.TITLE)%></h1>
<span id="usergroup"><span id="userNameSpan"></span><span id="groupNameSpan"></span></span>
</div>
<div id="loading-mask"></div>
	<div id="loading">
	  <div class="loading-indicator"><img src="<%=context %>/extframe/images/loading.gif" width="120" height="120" style="margin-right:8px;" align="absmiddle"/>页面内容加载中...</div>
	</div>
    <a id="menuhref"></a>
</body>
</html>
